package com.jieshuibao.common.config;

public class Const {
	/**
	 * 产品类型  偷偷看 悬赏 会员卡 红包
	 */
	public static final String  TTK = Global.getConfig("producttype.ttk");//1
	public static final String  XS = Global.getConfig("producttype.xs");//2
	public static final String  VIP = Global.getConfig("producttype.vip");//3
	public static final String  REDBAG = Global.getConfig("producttype.redbag");//4
	public static final String WISH = "6";
	public static final String VEDIO = "5";
	public static final String ADDXS = "7";
	public static final String ZX = "8";
	
	/**
	 * CC回调域名
	 */
	public static final String NOTIFYSERVER = Global.getConfig("notify.server");
	
	/**
	 * 短信验证码有效期
	 */
	public static long livetime = Long.parseLong(Global.getConfig("sms.livetime"));
	/**
	 * 推广员  password  加密key
	 */
	public static final String KEY = "com.jieshuibao.spread.key.1205";
	/**
	 * 提现最小金额限制
	 */
	public static final double MONEY = Double.parseDouble(Global.getConfig("withdraw.money"));
	/**
	 * 提现审核金额限制  小于等于改值是不需要审核，大于该值是需要审核
	 */
	public static final int CHECKMONEY = Integer.valueOf(Global.getConfig("withdraw.checkmoney"));
	/**
	 * 提现间隔时间限制
	 */
	public static final long TIME = Long.parseLong(Global.getConfig("withdraw.time"));
	
	/**
	 * 悬赏采纳后给咨询师分钱比例
	 */
	public static final double REWARDSCALE = Double.valueOf((Global.getConfig("reward.scale")));
	/**
	 * 偷偷成功回答问题的人分钱比例
	 */
	public static final double TTKREPLYSCALE = Double.valueOf((Global.getConfig("reward.ttkreplyscale")));
	/**
	 * 偷偷成功提问问题的人分钱比例
	 */
	public static final double TTKASKSCALE = Double.valueOf((Global.getConfig("reward.ttkask")));
	/**
	 * 偷偷看成功jsb官方支出钱比例
	 */
	public static final double TTKJSBSCALE = Double.valueOf((Global.getConfig("reward.ttkjsbscale")));
	/**
	 * 答案状态   采纳
	 */
	public static final double ANSWERADOPT = Double.valueOf((Global.getConfig("answer.adopt")));
	/**
	 * 公司入账ID
	 */
	public static final String JSBUSERID = "0000";
	/**
	 * 账户性质
	 */
	public static final String ACCOUNTPERSON = "2";
	public static final String ACCOUNTCOMPANY = "1";
	/**
	 * 发送通知短信场景
	 */
	public static final String SCENE_ANSWER_ADOPT = "XS1";    //采纳答案通知被采纳人
	public static final String SCENE_ANSWER_ENOUGH = "XS2";   //回答满三个
	public static final String SCENE_QUESTION_TOEND = "XS3";  //问题即将到期
	public static final String SCENE_REDBAG_REWARD = "DS1";   //红包打赏
	
	public static final String SCENE_COUNSELOR_PASS = "ZXP1"; //咨询师审核通过
	public static final String SCENE_COUNSELOR_NOPASS = "ZXP2";//咨询师审核不通过
	public static final String SCENE_ANSWER_ADOPTCOMFORT = "XS4";//采纳答案  安慰通知
	/**
	 * 咨询 给咨询师发短信
	 */
	public static final String SCENE_ADVISORY_COUNSELOR = "AD1";//咨询 给咨询师发短信
	/**
	 * 咨询师回复给用户发短信
	 */
	public static final String SCENE_ADVISORY_USER = "AD2";//咨询师回复给用户发短信
	/**
	 * 咨询师回复快速问
	 */
	public static final String SCENE_QUESTION_ANSWER = "SQA";//咨询师回复快速问
	/**
	 * 专家发布新文章给粉丝发送短信通知
	 */
	public static final String SCENE_NEW_ARTICLE = "SNA";
	
	/**
	 * 验证码短信
	 */
	public static final String SCENE_USER_REGISTER = "UR";    //用户注册
	public static final String SCENE_USER_FINDPWD = "UF";   //找回密码
	public static final String SCENE_USER_SMS_LOGIN = "USL";   //短信登录
	/**
	 * 企业付款证书路径
	 * @return
	 */
	public static String getCertPah(){
		String path = "";
		 String osName = System.getProperties().getProperty("os.name").toLowerCase();
         if(osName.contains("windows")){
             path =  Global.getConfig("windows.cert");
         }else if(osName.contains("linux")){
             path =  Global.getConfig("linux.cert");
         }
         return path;
	}
	/**
	 * 企业用户   COMPANYDRIFT(游离未挂名公司)
	 */
	public static final int COMPANYDRIFT = Integer.valueOf(Global.getConfig("company.drift"));
	public static final int COMPANYADMIN = Integer.valueOf(Global.getConfig("company.admin"));
	public static final int COMPANYGENERAL = Integer.valueOf(Global.getConfig("company.general"));
	
	public static void main(String[] args) {
		System.out.println(livetime);
		System.out.println(getCertPah());
	}
	
	/**
	 * 白名单
	 */
	public static final String [] WHITELIST = {"18611967787","17701148832","18518512457","18210663376","13464510205","13501081649"};
	public static final String [] IPWHITE={"124.200.96.202"};
	/**
	 * 官方快速咨询状态
	 * 0 待回答
	 * 1已回答
	 * 2忽略
	 */
	public static final String OFFICIAL_ADVISORY_WAIT="0";
	public static final String OFFICIAL_ADVISORY_ALREADY="1";
	public static final String OFFICIAL_ADVISORY_IGNORE="2";
	
	/**
	 * 0 是会员
	 * 1不是会员
	 */
	public static final String USER_VIP_YES="0";
	public static final String USER_VIP_NO="1";
	/**
	 * 用户角色
	 * 0 冻结
	 * 1普通
	 * 2咨询师
	 * 3后台添加
	 */
	public static final int USER_ROLE_0=0;
	public static final int USER_ROLE_1=1;
	public static final int USER_ROLE_2=2;
	public static final int USER_ROLE_3=3;
	
	/**一对一
	 * 咨询初始
	 */
	public static final String ADVISORY_STATUS_0="0";
	/**
	 * 一对一
	 * 此业务正常结束
	 */
	public static final String ADVISORY_STATUS_1="1";
	/**
	 * 一对一
	 * 发起业务结束
	 */
	public static final String ADVISORY_STATUS_2="2";
	/**
	 * 一对一
	 * 此业务已过期结束
	 */
	public static final String ADVISORY_STATUS_3="3";
	/**
	 * 一对一
	 * 此业务已经退款
	 */
	public static final String ADVISORY_STATUS_4="4";
	/**
	 * 一对一
	 * 退款异常
	 */
	public static final String ADVISORY_STATUS_5="5";
	
	/**
	 * 聊天类型 1普通消息 2 url 3 发起结束 4 同意结束  5 不同意结束
	 */
	public static final String ADVISORY_RECORDING_STATUS_1="1";
	/**
	 * 2 url
	 */
	public static final String ADVISORY_RECORDING_STATUS_2="2";
	/**
	 * 3 发起结束
	 */
	public static final String ADVISORY_RECORDING_STATUS_3="3";
	/**
	 * 4 同意结束 
	 */
	public static final String ADVISORY_RECORDING_STATUS_4="4";
	/**
	 * 5 不同意结束
	 */
	public static final String ADVISORY_RECORDING_STATUS_5="5";
	
	/**
	 * 一对一  已读
	 */
	public static final String ADVISORY_USER_TYPE_0="0";
	/**
	 * 一对一 未读
	 */
	public static final String ADVISORY_USER_TYPE_1="1";
	
	
	
}

